<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>科研工作量考核系统</title>
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5/demo.css">
	<script type="text/javascript" src="js/jquery-easyui-1.5/jquery.min.js"></script>
	<script type="text/javascript" src="js/jquery-easyui-1.5/jquery.easyui.min.js"></script>
	
	<style>
        .nav-item
        {
            text-align: center;
        }

        .nav-item a
        {
            color: #000;
            text-decoration: none;
        }
        /*菜单js打开tab出现的滚动条隐藏*/
        .panel-body-noborder
        {
            overflow: hidden;
        }
    </style>
    <script type="text/javascript">
        $(function () {

        })

        function addTab(title, href) {
            var tt = $('#main-center');
            if (tt.tabs('exists', title)) {
                tt.tabs('select', title);
            } else {
                if (href) {
                    var content = '<iframe scrolling="yes" frameborder="0"  src="' + href + '" style="width:100%;height:100%;"></iframe>';
                } else {
                    var content = '未实现';
                }
                tt.tabs('add', {
                    title: title,
                    closable: true,
                    content: content
                });
            }
        }
    </script>
	
</head>
<body id="cc" class="easyui-layout">
<div data-options="region:'north',split:true" style="height: 50px; background-color: gray"></div>
    <div data-options="region:'west',title:'导航菜单',split:true" style="width: 150px;">

        <div id="aa" class="easyui-accordion" fit="true" style="height: auto;">
			<%
				Boolean kyglAdmin = (Boolean) (session.getAttribute("kyglAdmin"));
				System.out.println("kyglAdmin" + kyglAdmin);
				if (kyglAdmin) {
			%>
			<div title="用户管理" data-options="iconCls:'icon-save'" style="overflow: auto; padding: 10px;">
                <div class="nav-item">
                    <a href="javascript:addTab('管理员管理','admin/admin_main.html')">
                        <img src="images/sys_btn1.jpg"></img><br />
                        <span>管理员管理</span>
                    </a>
                </div>
				<div class="nav-item">
                    <a href="javascript:addTab('教师账号管理','admin/教师.html')">
                        <img src="images/sys_btn2.jpg"></img><br />
                        <span>教师账号管理</span>
                    </a>
                </div>
                <div class="nav-item">
                    <a href="javascript:addTab('科研管理人员','admin/李光稳-用户管理-科研审核人员.html')">
                      <img src="images/sys_btn3.jpg"></img><br />
                        <span>科研管理人员</span>
                    </a>
                </div>
                <div class="nav-item">
                    <a href="javascript:addTab('专家评委','admin/农慧玲-专家.html')">
                        <img src="images/sys_btn4.jpg"></img><br />
                        <span>专家评委</span>
                    </a>
                </div>
            </div>
            <%
    }
            %>
			<div title="公告管理" data-options="iconCls:'icon-save'" style="overflow: auto; padding: 10px;">
                <div class="nav-item">
                    <a href="javascript:addTab('公告管理','ky/公告管理--王容敏.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>公告管理</span>
                    </a>
                </div>
				<div class="nav-item">
                    <a href="javascript:addTab('站内通知管理','ky/站内通知管理--王容敏.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>站内通知管理</span>
                    </a>
                </div>
            </div>
			<div title="政法管理" data-options="iconCls:'icon-save'" style="overflow: auto; padding: 10px;">
                <div class="nav-item">
                    <a href="javascript:addTab('政法管理','admin/admin_add.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>政策法规</span>
                    </a>
                </div>
            </div>
			<div title="教师信息管理" data-options="iconCls:'icon-save'" style="overflow: auto; padding: 10px;">
                <div class="nav-item">
                    <a href="javascript:addTab('教师信息查询','admin/admin_add.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>教师信息查询</span>
                    </a>
                </div>
				 <div class="nav-item">
                    <a href="javascript:addTab('密码修改','teacher/教师个人信息-密码修改-陈杰.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>密码修改</span>
                    </a>
                </div>
            </div>
			<div title="考核奖励" data-options="iconCls:'icon-save'" style="overflow: auto; padding: 10px;">
                <div class="nav-item">
                    <a href="javascript:addTab('审核','admin/admin_add.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>审核</span>
                    </a>
                </div>
				<div class="nav-item">
                    <a href="javascript:addTab('项目查询','ky/project_query.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>项目查询</span>
                    </a>
                </div>
				<div class="nav-item">
                    <a href="javascript:addTab('修改','teacher/main.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>修改</span>
                    </a>
                </div>
				<div class="nav-item">
                    <a href="javascript:addTab('下载','admin/admin_add.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>下载</span>
                    </a>
                </div>
				<div class="nav-item">
                    <a href="javascript:addTab('分数核对','ky/scope_adjust.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>分数核对</span>
                    </a>
                </div>
            </div>
			<div title="成果管理" data-options="iconCls:'icon-save'" style="overflow: auto; padding: 10px;">
                <div class="nav-item">
                    <a href="javascript:addTab('成果登记','ky/科研成果登记.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>成果登记</span>
                    </a>
                </div>
				<div class="nav-item">
                    <a href="javascript:addTab('成果审核','ky/教师科研成果待审核列表.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>成果审核</span>
                    </a>
                </div>
				<div class="nav-item">
                    <a href="javascript:addTab('材料提交','')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>材料提交</span>
                    </a>
                </div>
			    <div class="nav-item">
                    <a href="javascript:addTab('考核奖励','ky/考核与奖励-黎锋.html')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>考核奖励</span>
                    </a>
                </div>
			   <div class="nav-item">
                    <a href="javascript:addTab('审查结果查询','')">
                        <img src="images/kdmconfig.png"></img><br />
                        <span>审查结果查询</span>
                    </a>
                </div>
            </div>
            <div title="系统设置" data-options="iconCls:'icon-wrench-screwdriver'" style="padding: 10px;">
                <div title="业务操作" selected="true" style="overflow: auto;">
                    <div class="nav-item">
                        <a href="javascript:addTab('用户管理','AdminUser/main.html')">
                            <img src="images/32/users_business_32.png"></img><br />
                            <span>用户管理</span>
                        </a>
                    </div>
                    <div class="nav-item">
                        <a href="javascript:addTab('设备申购')">
                            <img src="images/kdmconfig.png"></img><br />
                            <span>操作日志</span>
                        </a>
                    </div>
                    <div class="nav-item">
                        <a href="javascript:addTab('设备维修')">
                            <img src="images/package_settings.png"></img><br />
                            <span>设备维修</span>
                        </a>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <div data-options="region:'center'" style="padding: 5px; background: #eee;">
        <div id="main-center" class="easyui-tabs" fit="true" border="false">
            <div title="首页" style="padding: 20px;">
                <img src="images/banner.gif"></img>
                <div style="margin-top: 20px;">
                    <p>广西经济管理干部学院。</p>
                    <p>&nbsp;</p>
                    <p>科研管理系统。</p>
                    <p>&nbsp;</p>
                </div>
            </div>
        </div>
    </div>
</body>

</html>